package com.aosgame;

import com.androidgame.fx.Game;
import com.androidgame.fx.Graphics;
import com.androidgame.fx.Screen;
import com.androidgame.fx.Input.TouchEvent;

public class LogoScreen extends Screen {

	public LogoScreen(Game game) {
		super(game);
		
		game.getGameTime().reset();
		
		Assets.logo = game.getGraphics().newBitmap("logo.jpg");
	}

	@Override
	public void update(float deltaTime) {
		if(game.getGameTime().getWorldTime() >= 2000) {
			game.setScreen(new MenuScreen(game));
		}
	}

	@Override
	public void present(float deltaTime) {
		Graphics g = game.getGraphics();
		
		g.drawBitmap(Assets.logo, 0, 0);
		
		game.getGameTime().present(g);
	}

	@Override
	public void pause() {
		
	}

	@Override
	public void resume() {
		
	}

	@Override
	public void dispose() {
		
	}

	@Override
	public boolean touchDown(TouchEvent event) {
		return true;
	}

	@Override
	public boolean touchDragged(TouchEvent event) {
		return true;
	}

	@Override
	public boolean touchUp(TouchEvent event) {
		return true;
	}
}
